package cn.sdstudio.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author zyq
 */
@Data
@Schema(description = "用户信息更新请求数据模型")
public class UserUpdateDTO {

    @Schema(description = "用户昵称", example = "约翰尼")
    @Size(max = 50, message = "昵称长度不能超过50个字符")
    private String nickname;

    @Email(message = "邮箱格式不正确")
    @Size(max = 100, message = "邮箱长度不能超过100个字符")
    @Schema(description = "用户邮箱 (如果允许修改)", example = "new_email@example.com")
    private String email;

    @Schema(description = "性别 (0=女, 1=男, 3=未知)", example = "1")
    private Integer gender;

    @Schema(description = "用户头像URL", example = "http://example.com/avatar.jpg")
    @Size(max = 255, message = "头像URL长度不能超过255个字符")
    private String icon;

    @Schema(description = "用户个人描述或备注", example = "一位热爱编程的开发者")
    @Size(max = 255, message = "描述长度不能超过255个字符")
    private String description;


    // @Schema(description = "用户等级", example = "5")
    // private Integer level;

    // @Schema(description = "用户状态 (0=禁用, 1=启用) - 通常由管理员操作", example = "1")
    // private Integer status;

}
